package com.ruoyi.merchant.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 维修预约对象 repair_reservation
 * 
 * @author ruoyi
 * @date 2025-09-15
 */
public class RepairReservation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id编号 */
    private Integer id;

    /** 核销码（UUID产生、唯一） */
    @Excel(name = "核销码", readConverterExp = "U=UID产生、唯一")
    private String verificationCode;

    /** 核销码图片 */
    @Excel(name = "核销码图片")
    private String verificationImg;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Integer mid;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer uid;

    /** 维修方式（0到店维修、1上门取车） */
    @Excel(name = "维修方式", readConverterExp = "0=到店维修、1上门取车")
    private Integer type;

    /** 车主姓名 */
    @Excel(name = "车主姓名")
    private String name;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String phone;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reservationTime;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitTime;

    /** 取车位置 */
    @Excel(name = "取车位置")
    private String location;

    /** 车辆类型id */
    @Excel(name = "车辆类型id")
    private Integer carTypeId;

    /** 整车照片【列表照片】 */
    @Excel(name = "整车照片【列表照片】")
    private String vehiclePhotos;

    /** 维修部位照片（列表照片） */
    @Excel(name = "维修部位照片", readConverterExp = "列=表照片")
    private String repairPhotos;

    /** 维修状态（0已预约、1进行中、2以完成） */
    @Excel(name = "维修状态", readConverterExp = "0=已预约、1进行中、2以完成")
    private Integer status;

    /** 删除状态 */
    @Excel(name = "删除状态")
    private Integer deleted;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setVerificationCode(String verificationCode) 
    {
        this.verificationCode = verificationCode;
    }

    public String getVerificationCode() 
    {
        return verificationCode;
    }

    public void setVerificationImg(String verificationImg) 
    {
        this.verificationImg = verificationImg;
    }

    public String getVerificationImg() 
    {
        return verificationImg;
    }

    public void setMid(Integer mid) 
    {
        this.mid = mid;
    }

    public Integer getMid() 
    {
        return mid;
    }

    public void setUid(Integer uid) 
    {
        this.uid = uid;
    }

    public Integer getUid() 
    {
        return uid;
    }

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setReservationTime(Date reservationTime) 
    {
        this.reservationTime = reservationTime;
    }

    public Date getReservationTime() 
    {
        return reservationTime;
    }

    public void setSubmitTime(Date submitTime) 
    {
        this.submitTime = submitTime;
    }

    public Date getSubmitTime() 
    {
        return submitTime;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setCarTypeId(Integer carTypeId) 
    {
        this.carTypeId = carTypeId;
    }

    public Integer getCarTypeId() 
    {
        return carTypeId;
    }

    public void setVehiclePhotos(String vehiclePhotos) 
    {
        this.vehiclePhotos = vehiclePhotos;
    }

    public String getVehiclePhotos() 
    {
        return vehiclePhotos;
    }

    public void setRepairPhotos(String repairPhotos) 
    {
        this.repairPhotos = repairPhotos;
    }

    public String getRepairPhotos() 
    {
        return repairPhotos;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("verificationCode", getVerificationCode())
            .append("verificationImg", getVerificationImg())
            .append("mid", getMid())
            .append("uid", getUid())
            .append("type", getType())
            .append("name", getName())
            .append("phone", getPhone())
            .append("reservationTime", getReservationTime())
            .append("submitTime", getSubmitTime())
            .append("location", getLocation())
            .append("carTypeId", getCarTypeId())
            .append("vehiclePhotos", getVehiclePhotos())
            .append("repairPhotos", getRepairPhotos())
            .append("status", getStatus())
            .append("deleted", getDeleted())
            .toString();
    }
}
